﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B303Langf.Parser.AST
{
   public class VariableDeclarationWithDefinition : VariableDeclaration
   {
      public VariableDeclarationWithDefinition( TypeDenoter type, Identifier identifier, Expression definitionExpression )
         : base( type, identifier )
      {
         DefinitionExpression = definitionExpression;
      }

      public Expression DefinitionExpression
      {
         get;
         private set;
      }

      public override object Visit( IVisitor v, object obj )
      {
         return v.VisitVariableDeclarationWithDefinition( this, obj );
      }
   }
}
